package com.itheima.po;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.Version;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @Author Andy
 * @Description //TODO User
 * @Date 2022/3/6 10:05 上午
 * @Version 1.0
 **/
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tbl_book")
public class Book {
//    @TableId(type = IdType.ASSIGN_ID)
    private Long id;
    private String name;
    @TableLogic
    private Integer deleted;

    @Version
    private Integer version;
}
